<template>
	<view>   
	 <view class="pageHead"> <u-tabs @click="clickTabs" :list="tabList"></u-tabs></view>
	<view class="toolHead">
		<workTask></workTask>
	</view>
	 
	 
</view>
</template>

<script>

import workTask from './workTask.vue'
    export default {
        data() {
            return {
                tabList: [{
                    name: '工作任务',
					badge: {
					    value: 5,
					}
                },{
                    name: '审批任务',
                    badge: {
                        value: 5,
                    }
                }, {
                    name: '检查任务',
					badge: {
					    value: 5,
					}
                },
				{
				    name: '发起任务',
					badge: {
					    value: 5,
					}
				}],
				currentTabIndex:0,
            }
        },
		methods:{
			clickTabs(e){
				this.currentTabIndex=e.index
				console.log(e)
			}
		},
		components:{workTask}
    }
</script>
<style scoped>
	.pageHead{
		margin-top: 10px;
	}

	
</style>
